/* =============================================
   ETCHEVERRY MERCADO — ESTUDIO JURÍDICO
   CSS Premium | Responsive | Multi-theme
   ============================================= */

/* ---- CSS RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- THEME TOKENS ---- */
[data-theme="warm"] {
  --color-lucia-jodida: #dbdddf;
  --bg-main:      #F5F1ED;
  --bg-off:       #FAFAF8;
  --bg-alt:       #EDE8E2;
  --color-blue:   #5E7082;
  --color-sage:   #7D9485;
  --color-warm:   #8E8A84;
  --color-accent: #B5956A;
  --color-cta-bg: #5E7082;
  --color-inter:  #E8F0EA;
}
[data-theme="sage"] {
  --bg-main:      #EEF2EE;
  --bg-off:       #F6F9F6;
  --bg-alt:       #E0EAE1;
  --color-blue:   #4A6B5A;
  --color-sage:   #6A8A72;
  --color-warm:   #7A8880;
  --color-accent: #9EAD96;
  --color-cta-bg: #4A6B5A;
  --color-inter:  #D8E8DA;
}
[data-theme="slate"] {
  --bg-main:      #EDF0F4;
  --bg-off:       #F5F7FA;
  --bg-alt:       #DFE5ED;
  --color-blue:   #4B637A;
  --color-sage:   #6B8090;
  --color-warm:   #7A7E88;
  --color-accent: #8BA0B8;
  --color-cta-bg: #4B637A;
  --color-inter:  #D8E3EC;
}
[data-theme="cream"] {
  --bg-main:      #F9F5EF;
  --bg-off:       #FDFAF6;
  --bg-alt:       #F0E9DE;
  --color-blue:   #6B6050;
  --color-sage:   #8A8060;
  --color-warm:   #908A80;
  --color-accent: #C4A87A;
  --color-cta-bg: #6B6050;
  --color-inter:  #EDE0CC;
}

/* ---- SHARED TOKENS ---- */
:root {
  --text-dark:    #1A1917;
  --text-mid:     #4A4845;
  --text-muted:   #7A7773;
  --text-light:   #A8A5A1;
  --white:        #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;

  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.10);

  --transition:   0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.18s ease;

  --header-h:     72px;
  --max-w:        1160px;
  --gap:          clamp(24px, 5vw, 64px);
}

/* ---- HTML & BODY ---- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ---- CONTAINER ---- */
.container {
  width: min(var(--max-w), calc(100% - 48px));
  margin-inline: auto;
}

/* ---- TYPOGRAPHY HELPERS ---- */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 12px;
}
.section-eyebrow.centered { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-header .section-subtitle {
  margin-inline: auto;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--color-sage);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid rgba(0,0,0,0.18);
}
.btn-ghost:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  transform: translateY(-2px);
}

.btn-cta {
  background: var(--white);
  color: var(--color-cta-bg);
  font-size: 1rem;
  padding: 16px 36px;
}
.btn-cta:hover {
  background: var(--bg-off);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ====================================================
   HEADER
   ==================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(245, 241, 237, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

[data-theme="sage"] .header.scrolled  { background: rgba(238, 242, 238, 0.94); }
[data-theme="slate"] .header.scrolled { background: rgba(237, 240, 244, 0.94); }
[data-theme="cream"] .header.scrolled { background: rgba(249, 245, 239, 0.94); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}
.logo-main {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  line-height: 1;
}
.logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-sage);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--text-dark); }
.nav-link:hover::after { width: 100%; }

.header-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-dark);
  transition: var(--transition);
  transform-origin: center;
}

/* ====================================================
   HERO
   ==================================================== */
.hero {
  min-height: 100svh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: var(--bg-alt);
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
  padding-block: clamp(40px, 6vw, 80px);
}

.hero-content {
  max-width: 560px;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 20px;
}
.hero-eyebrow .sep { color: var(--text-light); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--color-sage);
}

.hero-text {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-blue);
  background: rgba(94, 112, 130, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.01em;
}

/* Hero image */
.hero-image-wrap {
  position: relative;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 620px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}
.hero-image-frame:hover .hero-img {
  transform: scale(1.03);
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(245,241,237,0.25) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-off);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}
.badge-icon {
  font-size: 1.4rem;
  color: var(--color-sage);
  line-height: 1;
}
.badge-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 1.3;
}

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
  animation: fadeUp 1s 0.8s ease both;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--text-dark));
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ====================================================
   EMOTIONAL BLOCK
   ==================================================== */
.emotional {
  background: var(--color-inter);
  padding: clamp(80px, 10vw, 140px) 0;
}

.emotional-inner {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.emotional-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.emotional-text {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 48px;
}

.emotional-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.emotional-divider span:first-child,
.emotional-divider span:last-child {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--text-light);
}
.diamond {
  color: var(--color-sage);
  font-size: 0.6rem;
}

/* ====================================================
   ÁREAS
   ==================================================== */
.areas {
  background: var(--bg-main);
  padding: clamp(80px, 10vw, 120px) 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-lucia-jodida);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  cursor: default;
}

.card.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(125, 148, 133, 0.25);
  transform: translateY(-4px);
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--color-sage);
}
.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ====================================================
   INTERDISCIPLINARIO
   ==================================================== */
.interdisciplinary {
  background: var(--color-inter);
  padding: clamp(80px, 10vw, 120px) 0;
}

.inter-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.inter-image-wrap {
  position: relative;
}

.inter-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.inter-img-accent {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 60%;
  height: 60%;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-sage);
  opacity: 0.3;
  z-index: -1;
}

.inter-text {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.78;
  margin-bottom: 20px;
}

.inter-disciplines {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.discipline {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.discipline.visible {
  opacity: 1;
  transform: none;
}

.discipline-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--color-sage);
  margin-top: 2px;
}
.discipline-icon svg { width: 100%; height: 100%; }

.discipline strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.discipline p {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ====================================================
   EQUIPO
   ==================================================== */
.team {
  background: var(--bg-off);
  padding: clamp(80px, 10vw, 120px) 0;
}

.values-strip {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 28px 36px;
  margin-bottom: 60px;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.values-list li {
  font-size: 0.875rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}
.value-dot {
  color: var(--color-sage);
  font-size: 0.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.team-card {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.team-card.visible {
  opacity: 1;
  transform: none;
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-avatar {
  aspect-ratio: 1;
  overflow: hidden;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.team-card:hover .team-avatar img {
  transform: scale(1.05);
}

.team-info {
  padding: 24px 28px;
}

.team-initials {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-sage);
  background: rgba(125, 148, 133, 0.12);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.team-role {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-sage);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.team-quote {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  padding: 48px 40px;
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--color-sage);
}
.team-quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 16px;
}
.team-quote cite {
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ====================================================
   PROCESO
   ==================================================== */
.process {
  background: var(--color-lucia-jodida);
  padding: clamp(80px, 10vw, 120px) 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 5%;
  width: 90%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--text-light) 20%, var(--text-light) 80%, transparent);
}

.timeline-step {
  padding: 0 24px;
  padding-top: 64px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}
.timeline-step.visible {
  opacity: 1;
  transform: none;
}

.step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  background: var(--bg-off);
  border: 1.5px solid var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-blue);
  transition: var(--transition);
}
.timeline-step:hover .step-number {
  background: var(--color-blue);
  color: var(--white);
  border-color: var(--color-blue);
  box-shadow: var(--shadow-sm);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-align: center;
}

.step-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}

/* ====================================================
   COMPLEMENTARIOS
   ==================================================== */
.complementary {
  background: var(--bg-alt);
  padding: clamp(60px, 8vw, 100px) 0;
}

.comp-inner {
  max-width: 500px;
  margin-inline: auto;
  text-align: center;
}

.comp-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.comp-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comp-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-mid);
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
}
.comp-list li.visible {
  opacity: 1;
  transform: none;
}
.comp-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-sage);
}

/* ====================================================
   CTA FINAL
   ==================================================== */
.cta-section {
  background: var(--color-cta-bg);
  padding: clamp(80px, 10vw, 120px) 0;
}

.cta-inner {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

/* ====================================================
   CONTACTO
   ==================================================== */
.contact {
  background: var(--bg-off);
  padding: clamp(80px, 10vw, 120px) 0;
}

.contact-grid {
  display: grid;
 
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  
  background: #e8e8ed;
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid transparent;
}
a.contact-item:hover {
  border-color: rgba(125, 148, 133, 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--color-sage);
  margin-top: 2px;
}
.contact-item-icon svg { width: 100%; height: 100%; }

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2a4661;
  margin-bottom: 3px;
}
.contact-item span {
  display: block;
  font-size: 0.85rem;
  color: #3373b0;
  
  line-height: 1.5;
}

/* Form */
.contact-form-wrap {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-off);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(125, 148, 133, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ====================================================
   FOOTER
   ==================================================== */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo-main {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 2px;
}
.footer-brand .logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--white); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact p,
.footer-contact a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ====================================================
   THEME PANEL
   ==================================================== */
.theme-panel {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  background: var(--bg-off);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: var(--transition);
  min-width: 200px;
}
.theme-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.theme-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.theme-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.theme-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-mid);
  transition: var(--transition-fast);
  text-align: left;
}
.theme-btn:hover {
  background: var(--bg-main);
  border-color: var(--text-light);
}
.theme-btn.active {
  border-color: var(--color-sage);
  color: var(--text-dark);
  font-weight: 500;
}
.swatch {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.theme-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1;
  padding: 2px 4px;
}
.theme-close:hover { color: var(--text-dark); }

/* ====================================================
   ANIMATIONS
   ==================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* ====================================================
   RESPONSIVE — TABLET
   ==================================================== */
@media (max-width: 960px) {
  .hero::before { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }
  .hero-image-wrap {
    max-width: 440px;
    margin-inline: auto;
  }
  .hero-content { max-width: 100%; }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inter-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid .team-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin-inline: auto;
    width: 100%;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .timeline::before { display: none; }
  .timeline-step {
    padding-top: 72px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: span 2; }
}

/* ====================================================
   RESPONSIVE — MOBILE
   ==================================================== */
@media (max-width: 640px) {
  :root { --header-h: 64px; }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: var(--bg-off);
    padding: 40px 32px;
    flex-direction: column;
    z-index: 999;
  }
  .nav.open {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    gap: 24px;
  }
  .nav-link {
    font-size: 1.3rem;
    font-family: var(--font-display);
    color: var(--text-dark);
  }
  .nav-toggle {
    display: flex;
  }
  .header-cta {
    display: none;
  }

  .hero-tags {
    gap: 8px;
  }
  .tag { font-size: 0.72rem; padding: 5px 12px; }

  .hero-badge {
    bottom: -14px;
    left: 12px;
  }

  .areas-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-grid .team-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .timeline {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 28px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-brand { grid-column: auto; }

  .values-strip {
    padding: 24px 20px;
  }

  .team-quote {
    padding: 32px 24px;
  }

  .theme-panel {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
}

/* ====================================================
   ACCESSIBILITY
   ==================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Selection */
::selection {
  background: rgba(125, 148, 133, 0.2);
  color: var(--text-dark);
}
